Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@trenskow/caseit
Advanced tools
A small library for changing the case of a string.
Import using the following example.
const caseit = require('@trenskow/caseit');
– or
import caseit from '@trenskow/caseit'
To convert from one case type to another use the following example.
const myCamelCase = caseit('my_camel_case', 'camel'); // return 'myCamelCase';
You can convert from any format to any other format. Supported formats are.
camel
- camelCasepascal
- PascalCasesnake
- snake_casedomain
- domain.casekebab
- kebab-casetitle
- Title Casehttp
- Http-CaseDefault format (if omitted) is
camel
(because it is the Javascript default).
To detect the casing of a string do as the following example.
caseit.detect('MyCase'); // returns ['pascal']
caseit.detect('Hello'); // returns ['pascal', 'title', 'http']
You can also get the lowercase variants of all the words in a string by using the following example.
caseit.words('MyCase'); // returns ['my', 'case']
3-Clause BSD (see LICENSE).
FAQs
Small library for converting between different casing.
We found that @trenskow/caseit demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.